<?php
/**
 * Created by PhpStorm.
 * User: gong.chixin
 * Date: 2019/12/24
 * Time: 12:31
 */
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script type="text/javascript" src="assets/jquery-3.0.0.min.js"></script>
<title>Document</title>
    <style type="text/css">
        td {
            text-align: center;
        }
    </style>
</head>
<body>
<table width="500">
    <tr>
        <th width="20" bgcolor="#faebd7">ID</th>
        <th width="20" bgcolor="#faebd7">姓名</th>
        <th width="20" bgcolor="#faebd7">查看</th>
        <th width="20" bgcolor="#faebd7">删除</th>
    </tr>
    <tbody id="userList">
    <? if (!empty($userList)) { ?>
		<? foreach ($userList as $key => $user) { ?>
            <tr>
                <td><? echo $user['id'] ?></td>
                <td><? echo $user['userName'] ?></td>
                <td><a href="?func_id=userDetail&userId=<? echo $user['id'] ?>">查看</a></td>
                <td><a href="">删除</a></td>
            </tr>
		<? } ?>
	<? } ?>
    </tbody>
</table>
<div id="form">
        <form action="?func_id=userAdd" method="post">
            <div class="line" style="margin-top: 30px;text-align: center">
                <label for="userKey">用戶姓名</label>
                <input type="text" name="userName" id="userName">
            </div>
            <div class="line" style="margin-top: 30px;text-align: center">
                <label for="userKey">用戶key</label>
                <input type="text" name="userKey" id="userKey">
            </div>
            <div class="line" style="margin-top: 30px;text-align: center">
                <input type="submit" value="保存">
            </div>
        </form>
    </div>
<script type="text/javascript">

</script>
</body>
</html>

